<div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>工单详情</h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_goBack()">
                            <i class="fa fa-times"></i> 返回
                        </button>
                    </div>
                </div>
                <div class="ibox-content">

                    <div class="row">
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label class="col-form-label">工单编码：</label>
                                <label class="">{{housekeepingServDetailInfo.cartId ==
                                    '-1'?housekeepingServDetailInfo.poolId:housekeepingServDetailInfo.cartId}}</label>
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label class="col-form-label">服务名称：</label>
                                <label class="">{{housekeepingServDetailInfo.servName}}</label>
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label class="col-form-label">申请人：</label>
                                <label class="">{{housekeepingServDetailInfo.applyName}}</label>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label class="col-form-label">联系方式：</label>
                                <label class="">{{housekeepingServDetailInfo.applyTel}}</label>
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label class="col-form-label">服务类型：</label>
                                <label class="">{{housekeepingServDetailInfo.hktName}}</label>
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label class="col-form-label">预约时间：</label>
                                <label class="">{{housekeepingServDetailInfo.appointmentTime}}</label>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label class="col-form-label">状态：</label>
                                <label class="">{{housekeepingServDetailInfo.stateName}}</label>
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label class="col-form-label">备注：</label>
                                <label class="">{{housekeepingServDetailInfo.context}}</label>
                            </div>
                        </div>
                    </div>
                    <div class="row" v-if="housekeepingServDetailInfo.visitType">
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label class="col-form-label">回访满意度：</label>
                                <label class="">{{housekeepingServDetailInfo.visitType=='1001'?'满意':'不满意'}}</label>
                            </div>
                        </div>
                        <div class="col-sm-8">
                            <div class="form-group">
                                <label class="col-form-label">回访内容：</label>
                                <label class="">{{housekeepingServDetailInfo.visitContext}}</label>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <div class="row" v-if="housekeepingServDetailInfo.beforePhotos.length >0">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>维修前图片</h5>
                    <div class="ibox-tools" style="top:10px;">
                    </div>
                </div>
                <div class="ibox-content">
                    <div>
                        <div class="row">
                            <div class="form-group margin-left"
                                v-for="(item,index) in housekeepingServDetailInfo.beforePhotos">
                                <img style="width: 120px; height: 120px;" v-bind:src="item.url"
                                    v-on:click="openFile(item)" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row" v-if="housekeepingServDetailInfo.afterPhotos.length >0">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>维修后图片</h5>
                    <div class="ibox-tools" style="top:10px;">
                    </div>
                </div>
                <div class="ibox-content">
                    <div>
                        <div class="row">
                            <div class="form-group margin-left"
                                v-for="(item,index) in housekeepingServDetailInfo.afterPhotos">
                                <img style="width: 120px; height: 120px;" v-bind:src="item.url"
                                    v-on:click="openFile(item)" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row"
        v-if="housekeepingServDetailInfo.maintenanceType == '1001' || housekeepingServDetailInfo.maintenanceType == '1003'">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>相关物品</h5>
                    <div class="ibox-tools" style="top:10px;">
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="table table-stripped">
                        <thead>
                            <tr>
                                <th scope="col" class="text-center">物品资源编号</th>
                                <th scope="col" class="text-center">物品资源类型</th>
                                <th scope="col" class="text-center">物品资源名称</th>
                                <th scope="col" class="text-center">物品资源规格</th>
                                <th scope="col" class="text-center">物品使用数量</th>
                                <th scope="col" class="text-center">物品价格</th>
                                <th scope="col" class="text-center">使用人</th>
                                <th scope="col" class="text-center">时间</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="(item,index) in housekeepingServDetailInfo.resourceStoreInfo">
                                <td scope="row" class="text-center">{{item.resId}}</td>
                                <td class="text-center">{{item.rstName? item.rstName : '-'}}</td>
                                <td class="text-center">{{item.resourceStoreName}}</td>
                                <td class="text-center">{{item.specName? item.specName : '-'}}</td>
                                <td class="text-center">{{item.quantity}}</td>
                                <td class="text-center">{{item.unitPrice? item.unitPrice : '-'}}</td>
                                <td class="text-center">{{item.createUserName}}</td>
                                <td class="text-center">{{item.createTime}}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>工单流转</h5>
                    <div class="ibox-tools" style="top:10px;">
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="table table-stripped">
                        <thead>
                            <tr>
                                <th scope="col" class="text-center">序号</th>
                                <th scope="col" class="text-center">处理人</th>
                                <th scope="col" class="text-center">状态</th>
                                <th scope="col" class="text-center">处理时间</th>
                                <th scope="col" class="text-center">耗时</th>
                                <th scope="col" class="text-center">意见</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="(item,index) in housekeepingServDetailInfo.housekeepingServUsers">
                                <td scope="row" class="text-center">{{index+1}}</td>
                                <td class="text-center">{{item.staffName}}</td>
                                <td class="text-center">{{item.stateName}}</td>
                                <td class="text-center">{{item.endTime}}</td>
                                <td class="text-center">{{item.duration}}</td>
                                <td class="text-center">{{item.context}}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="common/viewImage"></vc:create>
</div>